#! /bin/sh -vx
# $Id$
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>
# Copyright 2009 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_odvitype=$BinDir/odvitype$ExeExt

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

tests=omegaware/tests

test -d $tests || mkdir -p $tests

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=$srcdir/$tests \
  $_odvitype $srcdir/$tests/ofontd0 | sed '1s/ (.*)$//' >$tests/xofontd0.typ || exit 1

diff $srcdir/$tests/ofontd0.typ $tests/xofontd0.typ || exit 2

